package com.yusysqdy.gulimail.product.feign.fallback;

import com.yusysqdy.common.exception.BizCodeEnume;
import com.yusysqdy.common.utils.R;
import com.yusysqdy.gulimail.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @program: gulimail
 * @contact: qindy0116@126.com
 * @author: Mr.DYQin
 * @create: 2021-02-25 14:41
 * @Description:
 **/

@Component
public class SecKillFeignServiceFalback implements SeckillFeignService {
    @Override
    public R getSkuSeckillInfo(Long skuId) {
        System.out.println("触发熔断");
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
